package com.weipai.springboot.model.api;

import java.util.List;
import java.util.Map;

/**
 * @author songmengqiang
 * @create 2018-08-27 18:25
 **/

public class OrderRequest {
    
    private String customerId;
    
    private String type;   //1 直接购买 ， 2  购物车购买， 3 积分兑换

    private Integer amountPayable; //应付金额

    private Integer isUseGift; //是否使用优惠券

    private String customerGiftId; //优惠券id    --------------如果是积分商品， 传integralGoodsId

    private Integer discountsMoney; //优惠金额

    private Integer realPay; //实付金额

    private String addressId; //收货地址id

    private Integer freightMoney; //运费

    private String shopId; //商铺id
    
    private String invoiceId; //发票id
    
    private Integer isInvoice; //是否开发票   是否开发票（0没有，1开发票）
    
    private String invoiceName; //发票人姓名
    
    private String invoiceMobile; //发票人手机号
    
    private String storageId; //仓储的id

    private String message; // 买家留言

    private String specialOfferId; // 是否是特卖商品

    private String fhrq; // 到货日期

//    private String integralGoodsId; // 是否是积分商品

    private List<OrderGoods> goodsList; //订单商品列表

    public static class OrderGoods {
        private String goodsId;//商品id
        private Integer goodsPrice;//商品价格
        private Integer goodsNumber;//商品数量


        @Override
        public String toString() {
            return "OrderGoods{" +
                    "goodsId='" + goodsId + '\'' +
                    ", goodsPrice=" + goodsPrice +
                    ", goodsNumber=" + goodsNumber +
                    '}';
        }



        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public Integer getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(Integer goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public Integer getGoodsNumber() {
            return goodsNumber;
        }

        public void setGoodsNumber(Integer goodsNumber) {
            this.goodsNumber = goodsNumber;
        }

    }

    @Override
    public String toString() {
        return "OrderRequest{" +
                "customerId='" + customerId + '\'' +
                ", amountPayable=" + amountPayable +
                ", isUseGift=" + isUseGift +
                ", customerGiftId='" + customerGiftId + '\'' +
                ", discountsMoney=" + discountsMoney +
                ", realPay=" + realPay +
                ", addressId='" + addressId + '\'' +
                ", freightMoney=" + freightMoney +
                ", shopId='" + shopId + '\'' +
                ", goodsList=" + goodsList +
                '}';
    }



//    public String getIntegralGoodsId() {
//        return integralGoodsId;
//    }
//
//    public void setIntegralGoodsId(String integralGoodsId) {
//        this.integralGoodsId = integralGoodsId;
//    }


    public String getFhrq() {
        return fhrq;
    }

    public void setFhrq(String fhrq) {
        this.fhrq = fhrq;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public String getInvoiceName() {
        return invoiceName;
    }

    public void setInvoiceName(String invoiceName) {
        this.invoiceName = invoiceName;
    }

    public String getInvoiceMobile() {
        return invoiceMobile;
    }

    public void setInvoiceMobile(String invoiceMobile) {
        this.invoiceMobile = invoiceMobile;
    }

    public Integer getAmountPayable() {
        return amountPayable;
    }

    public void setAmountPayable(Integer amountPayable) {
        this.amountPayable = amountPayable;
    }

    public Integer getIsUseGift() {
        return isUseGift;
    }

    public void setIsUseGift(Integer isUseGift) {
        this.isUseGift = isUseGift;
    }

    public String getCustomerGiftId() {
        return customerGiftId;
    }

    public void setCustomerGiftId(String customerGiftId) {
        this.customerGiftId = customerGiftId;
    }

    public Integer getDiscountsMoney() {
        return discountsMoney;
    }

    public void setDiscountsMoney(Integer discountsMoney) {
        this.discountsMoney = discountsMoney;
    }

    public Integer getRealPay() {
        return realPay;
    }

    public void setRealPay(Integer realPay) {
        this.realPay = realPay;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public Integer getFreightMoney() {
        return freightMoney;
    }

    public void setFreightMoney(Integer freightMoney) {
        this.freightMoney = freightMoney;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public List<OrderGoods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<OrderGoods> goodsList) {
        this.goodsList = goodsList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSpecialOfferId() {
        return specialOfferId;
    }

    public void setSpecialOfferId(String specialOfferId) {
        this.specialOfferId = specialOfferId;
    }
}
